<?php

namespace app\common\library;

trait DictTrait
{
    public  function getOption()
    {
        return $this->option;
    }
    public function getSelect()
    {
        $option = $this->getOption();
        if(isset($option['options'])&& is_array($option['options'])){
            return $option['options'];
        }else{
            return [];
        }
    }
}